home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2001 August
/
CMycha200108.iso
/
Zaczarowane
/
start.swf
/
scripts
/
DefineButton2_974
/
BUTTONCONDACTION on(keyPress Enter).as
Wrap
Text File
|
2001-06-06
|
9KB
|
361 lines
on(keyPress "<Enter>"){
if(_root.setr1 == false)
{
var r1 = 0;
var i = 0;
i = 0;
while(i < 7)
{
if(_root.gk1.charAt(i) == _root.w1_1.charAt(i) || _root.gk1.charAt(i) == _root.w1_2.charAt(i))
{
r1 += 1;
}
else
{
_root.mG = "5";
r1 -= 1;
}
i++;
}
if(r1 == 7)
{
_root.gk1 = "DZWONEK";
_root.setr1 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr1.gotoAndStop(1);
_root.pochwala1.start();
}
else
{
_root.gk1 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr1.gotoAndStop(1);
}
}
else
{
_root.gk1 = "dzwonek";
}
if(_root.setr2 == false)
{
var r2 = 0;
var i = 0;
i = 0;
while(i < 7)
{
if(_root.gk2.charAt(i) == _root.w2_1.charAt(i) || _root.gk2.charAt(i) == _root.w2_2.charAt(i))
{
r2 += 1;
}
else
{
_root.mG = "5";
r2 -= 1;
}
i++;
}
if(r2 == 7)
{
_root.gk2 = "HAMULCE";
_root.setr2 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_r2mini.gotoAndStop(1);
_root.pochwala2.start();
}
else
{
_root.gk2 = "";
_root.mc_goryKrzyz.mc_elemR.mc_r2mini.gotoAndStop(1);
}
}
else
{
_root.gk2 = "hamulce";
}
if(_root.setr3 == false)
{
var r3 = 0;
var i = 0;
i = 0;
while(i < 10)
{
if(_root.gk3.charAt(i) == _root.w3_1.charAt(i) || _root.gk3.charAt(i) == _root.w3_2.charAt(i))
{
r3 += 1;
}
else
{
_root.mG = "5";
r3 -= 1;
}
i++;
}
if(r3 == 10)
{
_root.gk3 = "KIEROWNICA";
_root.setr3 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr3.gotoAndStop(1);
_root.pochwala3.start();
}
else
{
_root.gk3 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr3.gotoAndStop(1);
}
}
else
{
_root.gk3 = "kierownica";
}
if(_root.setr4 == false)
{
var r4 = 0;
var i = 0;
i = 0;
while(i < 5)
{
if(_root.gk4.charAt(i) == _root.w4_1.charAt(i) || _root.gk4.charAt(i) == _root.w4_2.charAt(i))
{
r4 += 1;
}
else
{
_root.mG = "5";
r4 -= 1;
}
i++;
}
if(r4 == 5)
{
_root.gk4 = "OPONA";
_root.setr4 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr4.gotoAndStop(1);
_root.pochwala4.start();
}
else
{
_root.gk4 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr4.gotoAndStop(1);
}
}
else
{
_root.gk4 = "opona";
}
if(_root.setr5 == false)
{
var r5 = 0;
var i = 0;
i = 0;
while(i < 5)
{
if(_root.gk5.charAt(i) == _root.w5_1.charAt(i) || _root.gk5.charAt(i) == _root.w5_2.charAt(i) || _root.gk5.charAt(i) == _root.w5_3.charAt(i) || _root.gk5.charAt(i) == _root.w5_4.charAt(i))
{
r5 += 1;
}
else
{
_root.mG = "5";
r5 -= 1;
}
i++;
}
if(r5 == 5)
{
_root.gk5 = "PEDA�";
_root.setr5 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr6.gotoAndStop(1);
_root.pochwala5.start();
}
else
{
_root.gk5 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr6.gotoAndStop(1);
}
}
else
{
_root.gk5 = "peda�";
}
if(_root.setr6 == false)
{
var r6 = 0;
var i = 0;
i = 0;
while(i < 4)
{
if(_root.gk6.charAt(i) == _root.w6_1.charAt(i) || _root.gk6.charAt(i) == _root.w6_2.charAt(i))
{
r6 += 1;
}
else
{
_root.mG = "5";
r6 -= 1;
}
i++;
}
if(r6 == 4)
{
_root.gk6 = "RAMA";
_root.setr6 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr8.gotoAndStop(1);
_root.pochwala6.start();
}
else
{
_root.gk6 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr8.gotoAndStop(1);
}
}
else
{
_root.gk6 = "rama";
}
if(_root.setr7 == false)
{
var r7 = 0;
var i = 0;
i = 0;
while(i < 8)
{
if(_root.gk7.charAt(i) == _root.w7_1.charAt(i) || _root.gk7.charAt(i) == _root.w7_2.charAt(i) || _root.gk7.charAt(i) == _root.w7_3.charAt(i) || _root.gk7.charAt(i) == _root.w7_4.charAt(i))
{
r7 += 1;
}
else
{
r7 -= 1;
}
i++;
}
if(r7 == 8)
{
_root.gk7 = "SIODE�KO";
_root.setr7 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr9.gotoAndStop(1);
_root.pochwala7.start();
}
else
{
_root.gk7 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr9.gotoAndStop(1);
}
}
else
{
_root.gk7 = "siode�ko";
}
if(_root.setr8 == false)
{
var r8 = 0;
var i = 0;
i = 0;
while(i < 16)
{
if(_root.gk8.charAt(i) == _root.w8_1.charAt(i) || _root.gk8.charAt(i) == _root.w8_2.charAt(i) || _root.gk8.charAt(i) == _root.w8_3.charAt(i) || _root.gk8.charAt(i) == _root.w8_4.charAt(i) || _root.gk8.charAt(i) == _root.w8_5.charAt(i) || _root.gk8.charAt(i) == _root.w8_6.charAt(i) || _root.gk8.charAt(i) == _root.w8_7.charAt(i) || _root.gk8.charAt(i) == _root.w8_8.charAt(i) || _root.gk8.charAt(i) == _root.w8_9.charAt(i) || _root.gk8.charAt(i) == _root.w8_10.charAt(i) || _root.gk8.charAt(i) == _root.w8_11.charAt(i) || _root.gk8.charAt(i) == _root.w8_12.charAt(i) || _root.gk8.charAt(i) == _root.w8_13.charAt(i) || _root.gk8.charAt(i) == _root.w8_14.charAt(i) || _root.gk8.charAt(i) == _root.w8_15.charAt(i) || _root.gk8.charAt(i) == _root.w8_16.charAt(i))
{
r8 += 1;
}
else
{
r8 -= 1;
}
i++;
}
if(r8 == 16)
{
_root.gk8 = "PRZEDNIE �WIAT�O";
_root.setr8 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr10.gotoAndStop(1);
_root.pochwala8.start();
}
else
{
_root.gk8 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr10.gotoAndStop(1);
}
}
else
{
_root.gk8 = "przednie �wiat�o";
}
if(_root.setr9 == false)
{
var r9 = 0;
var i = 0;
i = 0;
while(i < 13)
{
if(_root.gk9.charAt(i) == _root.w9_1.charAt(i) || _root.gk9.charAt(i) == _root.w9_2.charAt(i) || _root.gk9.charAt(i) == _root.w9_3.charAt(i) || _root.gk9.charAt(i) == _root.w9_4.charAt(i) || _root.gk9.charAt(i) == _root.w9_5.charAt(i) || _root.gk9.charAt(i) == _root.w9_6.charAt(i) || _root.gk9.charAt(i) == _root.w9_7.charAt(i) || _root.gk9.charAt(i) == _root.w9_8.charAt(i) || _root.gk9.charAt(i) == _root.w9_9.charAt(i) || _root.gk9.charAt(i) == _root.w9_10.charAt(i) || _root.gk9.charAt(i) == _root.w9_11.charAt(i) || _root.gk9.charAt(i) == _root.w9_12.charAt(i) || _root.gk8.charAt(i) == _root.w9_13.charAt(i) || _root.gk9.charAt(i) == _root.w9_14.charAt(i) || _root.gk9.charAt(i) == _root.w9_15.charAt(i) || _root.gk9.charAt(i) == _root.w9_16.charAt(i))
{
r9 += 1;
}
else
{
r9 -= 1;
}
i++;
}
if(r9 == 13)
{
_root.gk9 = "TYLNE �WIAT�O";
_root.setr9 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr11.gotoAndStop(1);
_root.pochwala9.start();
}
else
{
_root.gk9 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr11.gotoAndStop(1);
}
}
else
{
_root.gk9 = "tylne �wiat�o";
}
if(_root.setr10 == false)
{
var r10 = 0;
var i = 0;
i = 0;
while(i < 5)
{
if(_root.gk10.charAt(i) == _root.w10_1.charAt(i) || _root.gk10.charAt(i) == _root.w10_2.charAt(i))
{
r10 += 1;
}
else
{
_root.mG = "5";
r10 -= 1;
}
i++;
}
if(r10 == 5)
{
_root.gk10 = "BIDON";
_root.setr10 = true;
_root.numberR += 1;
_root.mc_goryKrzyz.mc_elemR.mc_Rr12.gotoAndStop(1);
_root.pochwala10.start();
}
else
{
_root.gk10 = "";
_root.mc_goryKrzyz.mc_elemR.mc_Rr12.gotoAndStop(1);
}
}
else
{
_root.gk10 = "bidon";
}
_root.mc_losowanieGory.play();
}